home *** CD-ROM | disk | FTP | other *** search
- /* MCF_About.AMIRX
- \\ $VER: MCF_About.AMIRX 5.1 (22.11.97)
- //
- \\ Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
- // Please mail any bug reports/comments to the above address with a subject
- \\ header of MCF.AMIRX.
- //
- \\ MUI GUI portion of script uses 1 port
- // which is passed as an argument.
- \\
- // ** What to do with this file?
- \\ Put this script in AmIRC/Rexx
- */
- ;parse arg MUIPort;if ~show('p',MUIPort) then;do;MUIPort=upper(MUIPort);if ~show('p',MUIPort) then;do;"Say MUIRexx Port" MUIPort "not found. About - EOJ!";exit;end;end;Cenv=address();Options Results;PSscreen="";if 0=pos("AMIRC.",Cenv) then;MCFenv="AMIRC.1";else;do;MCFenv=Cenv;"INFO screen";PSscreen=result;if PSscreen='RESULT' then PSscreen="";end;APort="";do cntr=1 to 9;if ~show('p',"AMIRC."||cntr) then iterate cntr;APort="AMIRC."||cntr;cntr=9;end cntr;interpret "address" MUIPort;MUIA_Frame=0x8042ac64;MUIA_Window_DepthGadget=0x80421923;MUIA_Window_DragBar=0x8042045d;MUIA_Window_PublicScreen=0x804278e4;MUIA_Window_SizeGadget=0x8042e33d;MUIV_Frame_Text=0;FALSE=0;ATitle=getclip(MUIPort||"_Title");AVersion=getclip(MUIPort||"_Version");ACopyright=getclip(MUIPort||"_Copyright");AAuthor=getclip(MUIPort||"_Author");ADescription=getclip(MUIPort||"_Description");do cnt1=0 to 5;AboutText.cnt1="";end cnt1;AboutText.0="\n MCF About Window\n";if ATitle ~="" then AboutText.1="\n Title: " ATitle;if AVersion ~="" then AboutText.2="\n Version: " AVersion;if ACopyright ~="" then AboutText.3="\n Copyright: " ACopyright;if AAuthor ~="" then AboutText.4="\n Author: " AAuthor;if ADescription ~="" then AboutText.5="\n Description:" ADescription||"\n\n";Window ID ABOUT ATTRS MUIA_Window_DepthGadget FALSE MUIA_Window_DragBar FALSE MUIA_Window_SizeGadget FALSE MUIA_Window_PublicScreen PSscreen;group;do cnt2=0 to 5;if AboutText.cnt2 ~="" then text TRANS ATTRS MUIA_Frame MUIV_Frame_Text label AboutText.cnt2;end cnt2;endgroup;group HORIZ;if APort ~="" then;do;space;button PRESS COMMAND '"SAY /Rx MCF_WWW"' PORT APORT LABEL "MCF HomePage";end;space;button PRESS COMMAND '"Window ID ABOUT CLOSE"' PORT MUIPort LABEL "Close";space;endgroup;endwindow;exit